<?php
namespace User\Controller;
use Common\Controller\AdminBaseController;

class ApiAdminController extends AdminBaseController{

    /**
     * huhaiqin，2023.03.23
     * 用户设置存储接口
     */
    public function setup_post(){
        $data = $_POST;
        unset($data['file']); //过滤无用表单
        F('USER_CONFIG',$data); // 直接存储到文件
        _apiReturn(1,'success');
    }

    /**
     * 2023.06.26  xqx
     * 后台修改密码
     */
	public function repwd_admin() {
		$m = D('Users');
		$m->repwd($_REQUEST['oldpwd'],$_REQUEST['newpwd'],$_REQUEST['repwd']);
	}

    /**
     * 2023.06.26  xqx
     * 后台经销商修改地址信息
     */
	public function edit_address_post() {
		D('Users')->edit_address($_REQUEST['address'],$_REQUEST['country']);
	}

    /**
     * 2023.06.26  xqx
     * 后台经销商修改介绍信息
     */
	public function edit_selfinfo_post() {
		D('Users')->edit_selfinfo($_REQUEST['info']);
	}

}